//
//  CBVedioTopView.m
//  CultureBreath
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "CBVedioTopView.h"

@implementation CBVedioTopView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame = CGRectMake(10, 15, 25, 25);
        [_button setImage:[UIImage imageNamed:@"returnreturn.png"] forState:UIControlStateNormal];
        [self addSubview:_button];
        
        _dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(40, 10, 70, 25)];
        _dateLabel.font = [UIFont systemFontOfSize:16];
        [self addSubview:_dateLabel];
        
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-70, 10, 140, 30)];
        label.text = @"&yepetizer";
        label.font = [UIFont fontWithName:@"Zapfino" size:18];
        [self addSubview:label];
        
        _eyeButton = [UIButton buttonWithType:UIButtonTypeCustom];
        _eyeButton.frame = CGRectMake(SCREEN_WIDTH-30, 15, 20, 20);
        [self addSubview:_eyeButton];
        
        UIImageView *lineImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 48, SCREEN_WIDTH, 2)];
        lineImageView.image = [UIImage imageNamed:@"line"];
        [self addSubview:lineImageView];
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
